Dekoratives Banner

File seek() Method


    File(path).seek(pos, mode)

Description

    The File seek() method seeks to a certain position in the file. This method does not permit seeking to positions less than 0 or greater than the current file size.

Parameters

    pos

    The new current position inside the file as an offset in bytes (an integer), dependent on the seek mode.

    mode

    The seek mode (0 = seek to absolute position, 1 = seek relative to the current position, 2 = seek backwards from the end of the file).

Returns

    Boolean; true if the position was changed.